package thread;

public class TheadRunnable implements Runnable {
    @Override
    public void run() {
        int i=10;
        while(i>=0){
            System.out.println("距结束还有"+i+"秒！");
            i--;
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }


    }

    public static void main(String[] args) {
        new Thread(new TheadRunnable()).start();
    }
}
